package licode.unisop.types.dp;

import org.springframework.util.Assert;

/**
 * 定义验证的URL地址（支持ant风格的验证）
 */
public class AuthUrl {

    private final String url;

    public AuthUrl(String url) {
        Assert.isTrue(null != url,
                "地址错误：" + url);
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return url;
    }
}
